/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.unice.miage.projetjava.managers;

import fr.unice.miage.projetjava.entities.Commande;
import fr.unice.miage.projetjava.entities.LigneDeCommande;
import fr.unice.miage.projetjava.entities.Users;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author arnaud
 */
@Local
public interface GestionnaireDeCommandeLocal
{

    public Commande newCommande(Users user, Date date);

    public void deleteCommande(int id);

    public void persist(Object object);

    public Commande getCommande(int id);

    public void ajouterLigneDeCommande(Commande commande, LigneDeCommande ldc);

    public void retirerLigneDeCommande(Commande commande, LigneDeCommande ldc);

    public java.util.Collection<fr.unice.miage.projetjava.entities.Commande> listeDeCommande(fr.unice.miage.projetjava.entities.Users user);
    
}
